﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAO;

namespace BUS
{
    public class LapThucDonBus
    {
        LapThucDonDao daoTD = new LapThucDonDao();
        public List<MonAnPublic> LayDS_MonAn()
        {
            return daoTD.LayDS_MonAn();
        }
        public bool ThemThucDon(THUCDON_NGAY ThucDon)
        {
           return daoTD.ThemThucDon(ThucDon);
        }
        public void CapNhatChiTiet(CHITIET_THUCDON ThucDon)
        {
            daoTD.CapNhatChiTiet(ThucDon);
        }
        public List<ThucDonPublic> getWeek()
        {
            return daoTD.getWeek();
        }
        public List<ThucDonPublic> NgayTrongTuan(string tuan)
        {
            return daoTD.NgayTrongTuan(tuan);
        }
        public List<CHITIET_THUCDON> DanhSachThucDon(int mathucdon)
        {
            return daoTD.DanhSachThucDon(mathucdon);
        }
        public bool XoaChiTiet(int ct)
        {
            return daoTD.XoaChiTiet(ct);
        }
        public bool XoaThucDon(THUCDON_NGAY td)
        {
            return daoTD.XoaThucDon(td);
        }
    }
    
}
